package com.spring.cloud.seata.api;

import com.spring.cloud.seata.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zhangtengfei
 * @date 2021/10/18 11:23
 */
@FeignClient(value = "nacos-seata-storage-server")
public interface RemoteStorageService {

    /**
     * 扣减库存
     * 
     * @param productId
     * @param count
     * @return
     */
    @GetMapping(value = "/product/reduceCount")
    ResultVO reduceCount(@RequestParam("productId") Integer productId, @RequestParam("count") Integer count);

}
